﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Contracts.Dto.Output;
using IntelligentAgriculture.Domain.Entity;
using IntelligentAgriculture.Domain.Impl;
using IntelligentAgriculture.Domain.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    /// <summary>
    /// 种母配种服务接口
    /// </summary>
    public interface IBreedingInfoService
    {
        /// <summary>
        /// 种母配种显示
        /// </summary>
        /// <param name="input">查询参数</param>
        /// <returns>返回数据</returns>
        Task<PageOutput<BreedingInfoOutPut>> GetBreedingInfoAsync(BreedingInfoInput? input);


        /// <summary>
        /// 逻辑删除种母配种表
        /// </summary>
        /// <param name="breedId">主键id</param>
        /// <returns>受影响的行数</returns>
        Task<int> DeleteBreedingInfo(int breedId);



        /// <summary>
        /// 批量逻辑删除种母配种表
        /// </summary>
        /// <param name="breedIds">id</param>
        /// <returns>返回数据</returns>
        Task<int> DeleteRangeBreedingInfo(IEnumerable<int> breedIds);



        /// <summary>
        /// 批量添加种母配种数据
        /// </summary>
        /// <param name="inputs">实体列表</param>
        /// <returns>返回受影响的行数</returns>
       Task<int> AddBreedinginfoAsync(List<Breedinginfo> inputs);



    }
}
